---
title: "Ubuntu离线环境安装软件包"
categories:
- linux
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgdce0bc1">Intro</a></li>
<li><a href="#hack">Hack</a>
<ul>
<li>
<ul>
<li><a href="#a-dvd-repository">A DVD repository</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="outline-2" id="outline-container-orgdce0bc1">
<h2 id="orgdce0bc1">Intro</h2>
<div class="outline-text-2" id="text-orgdce0bc1">
<blockquote>
<p>
<a href="https://askubuntu.com/questions/974/how-can-i-install-software-or-packages-without-internet-offline">https://askubuntu.com/questions/974/how-can-i-install-software-or-packages-without-internet-offline</a>
</p>
</blockquote>
</div>
</div>
<div class="outline-2" id="outline-container-orge9fb05f">
<h2 id="hack"><a id="orge9fb05f"></a>Hack</h2>
<div class="outline-text-2" id="text-hack">
<p>
A quick hack
</p>
<p>
A quick hack is to copy all the packages you downloaded for your install
to his machine
(<a href="https://askubuntu.com/questions/86358/how-to-obtain-installed-package-files/86413#86413">detailed
instructions here</a>). The .deb files are stored in
{% raw %} /var/cache/apt/archives {% endraw %}, then in the other computer launch Synaptic
and select {% raw %} File -&gt; Add Package Downloaded {% endraw %} and search the folder were
you put the files and open it, accept all (or install from terminal
using the command {% raw %} sudo dpkg -i DEB_PACKAGE_NAME {% endraw %}).
</p>
<p>
<b>NOTE:</b> This assumes that your package manager is not setup to delete
the packages straight after install. It also assumes that you are
running the same version of Ubuntu (10.10, 12.04, etc) and architecture
version (32b or 64b).
</p>
</div>
<div class="outline-4" id="outline-container-org8962b14">
<h4 id="a-dvd-repository"><a id="org8962b14"></a>A DVD repository</h4>
<div class="outline-text-4" id="text-a-dvd-repository">
<p>
If you want the latest bug fixes and security patches available then
have a look at <a href="http://ubuntuforums.org/showthread.php?t=352460">this
tutorial</a>, which covers creating your own DVD repository.
</p>
</div>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="author">Author: amo</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
